package com.vcc.service.boss.response.currency;

import com.vcc.service.boss.response.baseVo.BossBaseVo;
import com.vcc.data.entity.Currency;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@Setter
@Getter
public class CurrencyVoBoss extends BossBaseVo implements Serializable {

    private String currency;

    private String name;

    private Integer status;

    public CurrencyVoBoss(){}

    public CurrencyVoBoss(Currency currency){
        super.setId(currency.getId());
        this.currency = currency.getCode();
        this.name = currency.getName();
        this.status = currency.getStatus();
    }

}
